﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
using System.Data;


namespace BUS
{
    public class BANGCAPBUS
    {
        public DataTable Loadbangcap()
        {
            DataTable datatble = new DataTable();
            BANGCAPDAO bcDAO = new BANGCAPDAO();
            datatble = bcDAO.Loadbangcap();
            return datatble;
        }
        public int update(DataTable datatable, string sqlquery)
        {
            BOPHANDAO bpDAO = new BOPHANDAO();
            return bpDAO.update(datatable, sqlquery);
        }

        public int thembangcap(BANGCAPDTO bpDTO)
        {
            BANGCAPDAO bpDAO = new BANGCAPDAO();
            int kq = bpDAO.thembangcap(bpDTO);
            return kq;
        }
    }
}
